package com.wangjie.extendsdemo;

public class Demo {
    public static void main(String[] args) {
        Cat cat = new Cat("kimmy",2);
        cat.eat("fish");
        cat.introduction();
        Animal animal = new Animal("动物",0);
        System.out.println(cat.num);
        System.out.println(animal.num);
    }
}
